#include "app_message.h"
#include "log/log.h"

int main()
{
    char *json_str = "{\"conn_type\":1,\"id\":\"5858\",\"msg\":\"61626364\"}";
    char chars_buf[100];
    int len = app_message_JsonToChars(json_str, chars_buf, 100);
    log_debug("chars:%.*s,len:%d", len, chars_buf,len);
    char *json = app_message_CharsToJson(chars_buf, len);
    log_debug("json:%s", json);
    return 0;
}